package com.example.imtoken.room.schema

import androidx.room.Entity
import androidx.room.Ignore
import androidx.room.PrimaryKey

/**
 * 货币管理
 * @property icon String        图标
 * @property walletType String  货币类型
 * @property name String        货币名称
 * @property address String     货币地址
 * @property description String 货币描述
 * @property id Int
 * @constructor
 */
@Entity(tableName = "wallet_address")
data class WalletAddressSchema(
    val icon: String?,
    val walletType: String?,
    val name: String?,
    val address: String?,
    val description: String?,
    var fatherAddress: String?
) {

    @PrimaryKey(autoGenerate = true)
    var id = 0

    @Ignore
    var amount = 0.0

    @Ignore
    var price = 0.0

    @Ignore
    var isCurrency = false

}